home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: isnan.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 69 73 6e 61 6e 20 2d |\section|{isnan -|
|00000010| 2d 2d 20 54 65 73 74 20 | 66 6f 72 20 4e 6f 74 2d |-- Test |for Not-|
|00000020| 41 2d 4e 75 6d 62 65 72 | 7d 0d 5c 6c 61 62 65 6c |A-Number|}.\label|
|00000030| 7b 66 6e 3a 69 73 6e 61 | 6e 7d 0d 5c 69 6e 64 65 |{fn:isna|n}.\inde|
|00000040| 78 7b 69 73 6e 61 6e 28 | 29 7d 0d 5c 69 6e 64 65 |x{isnan(|)}.\inde|
|00000050| 78 7b 74 65 73 74 20 66 | 6f 72 20 6e 6f 74 2d 61 |x{test f|or not-a|
|00000060| 2d 6e 75 6d 62 65 72 7d | 0d 5c 62 65 67 69 6e 7b |-number}|.\begin{|
|00000070| 72 61 69 6c 7d 0d 4e 61 | 4e 20 3a 20 27 69 73 6e |rail}.Na|N : 'isn|
|00000080| 61 6e 27 20 27 28 27 20 | 28 20 53 63 61 6c 61 72 |an' '(' |( Scalar|
|00000090| 20 7c 20 4d 61 74 72 69 | 78 20 29 20 27 29 27 20 | | Matri|x ) ')' |
|000000a0| 3b 0d 5c 65 6e 64 7b 72 | 61 69 6c 7d 0d 0d 5c 76 |;.\end{r|ail}..\v|
|000000b0| 65 72 62 2b 69 73 6e 61 | 6e 2b 20 74 65 73 74 73 |erb+isna|n+ tests|
|000000c0| 20 69 66 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 | if the |argument|
|000000d0| 20 69 73 20 65 71 75 61 | 6c 20 74 6f 20 4e 61 4e | is equa|l to NaN|
|000000e0| 2e 20 20 49 66 20 74 68 | 65 20 74 65 73 74 0d 69 |. If th|e test.i|
|000000f0| 73 20 74 72 75 65 2c 20 | 69 74 20 72 65 74 75 72 |s true, |it retur|
|00000100| 6e 73 20 24 31 24 2c 20 | 6f 74 68 65 72 77 69 73 |ns $1$, |otherwis|
|00000110| 65 20 69 74 20 72 65 74 | 75 72 6e 73 20 24 30 24 |e it ret|urns $0$|
|00000120| 2e 20 49 66 20 74 68 65 | 20 61 72 67 75 6d 65 6e |. If the| argumen|
|00000130| 74 0d 69 73 20 61 20 6d | 61 74 72 69 78 2c 20 74 |t.is a m|atrix, t|
|00000140| 68 65 20 74 65 73 74 20 | 69 73 20 70 65 72 66 6f |he test |is perfo|
|00000150| 72 6d 65 64 20 65 6c 65 | 6d 65 6e 74 2d 62 79 2d |rmed ele|ment-by-|
|00000160| 65 6c 65 6d 65 6e 74 2c | 20 72 65 74 75 72 6e 69 |element,| returni|
|00000170| 6e 67 20 61 20 0d 6d 61 | 74 72 69 78 20 74 68 65 |ng a .ma|trix the|
|00000180| 20 73 61 6d 65 20 73 69 | 7a 65 20 61 73 20 74 68 | same si|ze as th|
|00000190| 65 20 6f 72 69 67 69 6e | 61 6c 2e 0d 0d 24 5c 4c |e origin|al...$\L|
|000001a0| 6f 6e 67 72 69 67 68 74 | 61 72 72 6f 77 24 20 54 |ongright|arrow$ T|
|000001b0| 68 69 73 20 69 73 20 6e | 6f 74 20 61 6e 20 5c 52 |his is n|ot an \R|
|000001c0| 4c 61 42 5c 20 62 75 69 | 6c 74 2d 69 6e 20 66 75 |LaB\ bui|lt-in fu|
|000001d0| 6e 63 74 69 6f 6e 2e 20 | 20 54 68 69 73 20 66 75 |nction. | This fu|
|000001e0| 6e 63 74 69 6f 6e 0d 69 | 73 20 6e 6f 72 6d 61 6c |nction.i|s normal|
|000001f0| 6c 79 20 6c 6f 61 64 65 | 64 20 6f 6e 20 73 74 61 |ly loade|d on sta|
|00000200| 72 74 2d 75 70 20 66 72 | 6f 6d 20 74 68 65 20 5c |rt-up fr|om the \|
|00000210| 76 65 72 62 2b 69 73 6e | 61 6e 2e 72 2b 20 66 69 |verb+isn|an.r+ fi|
|00000220| 6c 65 20 69 6e 20 74 68 | 65 0d 73 74 61 6e 64 61 |le in th|e.standa|
|00000230| 72 64 20 5c 76 65 72 62 | 2b 72 6c 69 62 2b 20 64 |rd \verb|+rlib+ d|
|00000240| 69 72 65 63 74 6f 72 79 | 2e 20 55 73 65 20 6f 66 |irectory|. Use of|
|00000250| 20 74 68 65 20 5c 76 65 | 72 62 2b 2d 72 2b 20 6f | the \ve|rb+-r+ o|
|00000260| 70 74 69 6f 6e 2c 20 69 | 6e 63 6f 72 72 65 63 74 |ption, i|ncorrect|
|00000270| 6c 79 20 0d 73 65 74 74 | 69 6e 67 20 74 68 65 20 |ly .sett|ing the |
|00000280| 5c 76 65 72 62 2b 52 4c | 41 42 5f 4c 49 42 5f 44 |\verb+RL|AB_LIB_D|
|00000290| 49 52 2b 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 61 |IR+ envi|ronmenta|
|000002a0| 6c 20 76 61 72 69 61 62 | 6c 65 2c 20 6f 72 20 6d |l variab|le, or m|
|000002b0| 6f 64 69 66 79 69 6e 67 | 0d 5c 76 65 72 62 2b 69 |odifying|.\verb+i|
|000002c0| 73 6e 61 6e 2e 72 2b 20 | 6d 61 79 20 6d 61 6b 65 |snan.r+ |may make|
|000002d0| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 75 | this fu|nction u|
|000002e0| 6e 61 76 61 69 6c 61 62 | 6c 65 2e 0d 0d 5c 70 61 |navailab|le...\pa|
|000002f0| 72 61 67 72 61 70 68 7b | 45 78 61 6d 70 6c 65 7d |ragraph{|Example}|
|00000300| 0d 5c 69 6e 64 65 78 7b | 65 78 61 6d 70 6c 65 20 |.\index{|example |
|00000310| 6f 66 20 69 73 6e 61 6e | 28 29 7d 0d 5c 69 6e 64 |of isnan|()}.\ind|
|00000320| 65 78 7b 69 73 6e 61 6e | 28 29 21 65 78 61 6d 70 |ex{isnan|()!examp|
|00000330| 6c 65 7d 0d 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |le}.\beg|in{verba|
|00000340| 74 69 6d 7d 0d 3e 20 69 | 73 6e 61 6e 28 6e 61 6e |tim}.> i|snan(nan|
|00000350| 28 29 29 0d 20 20 20 20 | 20 20 20 20 31 0d 3e 20 |()). | 1.> |
|00000360| 69 73 6e 61 6e 28 2d 6e | 61 6e 28 29 29 0d 20 20 |isnan(-n|an()). |
|00000370| 20 20 20 20 20 20 31 0d | 3e 20 69 73 6e 61 6e 28 | 1.|> isnan(|
|00000380| 69 6e 66 28 29 29 0d 20 | 20 20 20 20 20 20 20 30 |inf()). | 0|
|00000390| 0d 3e 20 69 73 6e 61 6e | 28 30 29 0d 20 20 20 20 |.> isnan|(0). |
|000003a0| 20 20 20 20 30 0d 3e 20 | 69 73 6e 61 6e 28 31 29 | 0.> |isnan(1)|
|000003b0| 0d 20 20 20 20 20 20 20 | 20 30 0d 3e 20 61 20 3d |. | 0.> a =|
|000003c0| 20 5b 6e 61 6e 28 29 2c | 33 2c 32 2c 6e 61 6e 28 | [nan(),|3,2,nan(|
|000003d0| 29 2c 2d 6e 61 6e 28 29 | 2b 32 2c 34 35 5d 0d 20 |),-nan()|+2,45]. |
|000003e0| 61 20 3d 0d 20 6d 61 74 | 72 69 78 20 63 6f 6c 75 |a =. mat|rix colu|
|000003f0| 6d 6e 73 20 31 20 74 68 | 72 75 20 36 0d 20 20 20 |mns 1 th|ru 6. |
|00000400| 20 20 20 4e 61 4e 20 20 | 20 20 20 20 20 20 20 20 | NaN | |
|00000410| 33 20 20 20 20 20 20 20 | 20 20 20 32 20 20 20 20 |3 | 2 |
|00000420| 20 20 20 20 4e 61 4e 20 | 20 20 20 20 20 20 2d 4e | NaN | -N|
|00000430| 61 4e 20 20 20 20 20 20 | 20 20 20 34 35 20 20 0d |aN | 45 .|
|00000440| 0d 3e 20 69 73 6e 61 6e | 28 61 29 0d 20 6d 61 74 |.> isnan|(a). mat|
|00000450| 72 69 78 20 63 6f 6c 75 | 6d 6e 73 20 31 20 74 68 |rix colu|mns 1 th|
|00000460| 72 75 20 36 0d 20 20 20 | 20 20 20 20 20 31 20 20 |ru 6. | 1 |
|00000470| 20 20 20 20 20 20 20 20 | 30 20 20 20 20 20 20 20 | |0 |
|00000480| 20 20 20 30 20 20 20 20 | 20 20 20 20 20 20 31 20 | 0 | 1 |
|00000490| 20 20 20 20 20 20 20 20 | 20 31 20 20 20 20 20 20 | | 1 |
|000004a0| 20 20 20 20 30 20 20 0d | 5c 65 6e 64 7b 76 65 72 | 0 .|\end{ver|
|000004b0| 62 61 74 69 6d 7d 0d 0d | 53 65 65 20 61 6c 73 6f |batim}..|See also|
|000004c0| 3a 20 50 61 67 65 7e 5c | 70 61 67 65 72 65 66 7b |: Page~\|pageref{|
|000004d0| 66 6e 3a 66 69 6e 69 74 | 65 7d 20 5c 76 65 72 62 |fn:finit|e} \verb|
|000004e0| 2b 66 69 6e 69 74 65 28 | 29 2b 2c 0d 50 61 67 65 |+finite(|)+,.Page|
|000004f0| 7e 5c 70 61 67 65 72 65 | 66 7b 66 6e 3a 69 73 69 |~\pagere|f{fn:isi|
|00000500| 6e 66 7d 20 5c 76 65 72 | 62 2b 69 73 69 6e 66 28 |nf} \ver|b+isinf(|
|00000510| 29 2b 2c 0d 50 61 67 65 | 7e 5c 70 61 67 65 72 65 |)+,.Page|~\pagere|
|00000520| 66 7b 66 6e 3a 6e 61 6e | 7d 20 5c 76 65 72 62 2b |f{fn:nan|} \verb+|
|00000530| 6e 61 6e 28 29 2b 2e 0d | 0d 5c 6e 65 77 70 61 67 |nan()+..|.\newpag|
|00000540| 65 0d 0d 0d 0d 0d 0d | |e...... | |
+--------+-------------------------+-------------------------+--------+--------+